package com.sdwl.brcl.validation.validation;

/**
 * @author xied
 * @date 2021年06月11日 14:17
 */
public class ValidationError {
    private String name;
    private String errorCode;
    private String errorMsg;
    private Object invalidValue;

    public ValidationError() {
    }

    @Override
    public String toString() {
        return "ValidationError{name=" + this.name + ", errorCode=" + this.errorCode + ", errorMsg=" + this.errorMsg + ", invalidValue=" + this.invalidValue + "}";
    }

    public String getErrorCode() {
        return this.errorCode;
    }

    public ValidationError setErrorCode(String errorCode) {
        this.errorCode = errorCode;
        return this;
    }

    public String getErrorMsg() {
        return this.errorMsg;
    }

    public ValidationError setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
        return this;
    }

    public String getName() {
        return this.name;
    }

    public ValidationError setName(String name) {
        this.name = name;
        return this;
    }

    public Object getInvalidValue() {
        return this.invalidValue;
    }

    public ValidationError setInvalidValue(Object invalidValue) {
        this.invalidValue = invalidValue;
        return this;
    }
}
